<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.ArrayList, edu.wfmanage.models.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Submitted Requests History</title>
</head>
<body>
<h1 align="center">Request details</h1> 
<table align="center">
<tr> 
    <th><h2>RequestId</h2></th>
    <th><h2>Mode of Travel</h2></th>
    <th><h2>Distance</h2></th>
    <th><h2>Source</h2></th>
    <th><h2>Destination</h2></th>
    <th><h2>Fare</h2></th>
    <th><h2>Travel Date</h2></th>
     <th><h2>Approved Amount</h2></th>
    <th><h2>Status</h2></th>
</tr>
<s:if test="%{allclaims.size()}==0">
<h2>You have no Claim requests to display</h2>
</s:if>
<s:else>
<s:iterator value="allclaims">
<tr>

<td>
<s:url id="request_id" action="RequestDisplay">
<s:param name="RequestId" value="RequestId"/>
</s:url>
<h3><s:a href="%{request_id}"><s:property value="RequestId"/></s:a></h3> </td>
 
<td><h3><s:property value="mode"/></h3> </td>
<td><h3><s:property value="Distance"/></h3> </td>
<td><h3><s:property value="Source"/></h3> </td>
<td><h3> <s:property value="Destination"/></h3></td>
<td><h3><s:property value="Fare"/></h3> </td>
<td><h3><s:property value="travelDate"/></h3> </td>
<td><h3> <s:property value="approvedAmt"/></h3></td>
<td><h3><s:property value="Status"/></h3> </td>
<td>
</tr>
</s:iterator>
</s:else>
</table>
<center>
<s:form action="logout" align="center">
<s:submit name = "submit" value="Back to Home Page" align="center"/>
</s:form>
</center>
</body>
</html>